So I have this script that does what I need it to do (probably a better way of doing it) But is it possible to modify an object attribute for an entire folder instead of one by one seeing as I have a few hundred modules to go through? Essentially Id want to make a radioBox selection to choose between Module/Folder for future use
Module m = current
Object o = current
DB resultsBox = create ("Proprietary Markings", styleCentered | styleFixed)
DBE choiceDBE
//****************************************************************************************
//=====================================Update Config Button===============================
//****************************************************************************************
string ConfigChoice[]={"Select Propietary Marking", "A", "B","C", "D", "N/A"}
void clbkChoice(DBE dbeXX)
{
s1 = "A"
s2 = "B"
s3 = "C"
s4 = "D"
s5 = "N/A"
{
// React to changes in the Choice DBE
load view "Standard view"
insert(column 3)
attribute(column 3, "Proprietary Marking")
width(column 3, 100)
insert(column 4)
attribute(column 4, "Object Type")
width(column 4, 100)
string sSelected = get(choiceDBE)
if (sSelected == s1)
{
for o in m do
{
o."Proprietary Marking" = "A"
}
}
elseif (sSelected == s2)
{
for o in m do
{
o."Proprietary Marking" = "B"
}
}
elseif (sSelected == s3)
{
for o in m do
{
o."Proprietary Marking" = "C"
}
}
elseif (sSelected == s4)
{
for o in m do
{
o."Proprietary Marking" = "D"
}
}
elseif (sSelected == s5)
{
for o in m do
{
o."Proprietary Marking" = "N/A"
}
}
}
refresh current
}
db = create("Choice Callback")
choiceDBE =choice(resultsBox, "", ConfigChoice, 6, 0, 24, false)
set(choiceDBE, clbkChoice)
//****************************************************************************************
show resultsBox
MrNiceGuy - Fri Dec 09 13:19:56 EST 2016 |
Re: Block Fill an entire column with an enumerated selection A column displays attribute values. You set attribute value for an object Object o = current o.Proprietary Marking" = "A"
or for going troughout a module Module m = current Object o = null for o in m do { o.Proprietary Marking" = "A" } |
Re: Is it possible to run dxl script for an entire folder? |